package com.bestdreamer.lock;

public class Demo2ThreadB extends Thread {

    private final Demo2Service service;

    public Demo2ThreadB(Demo2Service service){
        super();
        this.service = service;
    }

    @Override
    public void run() {
        service.write();
    }
}
